package org.raftkv.raft.tracker;

import java.util.HashMap;
import java.util.Map;

/**
 * 一个 Progress 的 Map
 *
 * @author wzy
 */
public class ProgressMap {

    private Map<Long, Progress> progressMap;

    public ProgressMap() {
        progressMap = new HashMap<>();
    }

    public ProgressMap(Map<Long, Progress> progressMap) {
        this.progressMap = progressMap;
    }

    public ProgressMap(ProgressMap p) {
        this.progressMap = p.progressMap;
    }

    @Override
    public String toString() {
        return "ProgressMap{" +
                "progressMap=" + progressMap +
                '}';
    }

    public Map<Long, Progress> getProgressMap() {
        return progressMap;
    }

    public void setProgressMap(Map<Long, Progress> progressMap) {
        this.progressMap = progressMap;
    }

}
